<template>
    <div>
        <ChangeInfo v-if="state" :value="form"/>
    </div>
</template>
<script>
    import ChangeInfo from '@/views/collectionManagement/workerInfo/changeInfo.vue'
    import * as apis from "@/api/collectionManagement/litigationApplication.js";
    export default{
        name: "RedoCollection",
        components: {ChangeInfo},
        dicts: [ ],
        data(){
            return{
                form:{},
                state:false
            }
        },
        created(){
            this.getInfo()
        },
        methods:{
            getInfo(){
                apis.changeLitigationInfo(this.$route.query?.id).then((res)=>{
                    if(res.code==200){
                        this.form = res.data
                        if(res.data?.id){
                            this.state=true
                        }else{
                            this.state=false
                        }
                    }
                })
            },
        }
    }
</script>